post /tasks
List Tasks (findTasks)
Lists Velostrata management tasks.
Consumes
This API call consumes the following media types via the Content-Type request header:
- application/json
Request body
pageRequest PageRequest (required)
Body Parameter — Page request
Return type
TaskDescriptionPage
number (optional) |
Integer Page number format: int32 |
||||||||||||||||||||||||||||||
numberOfElements (optional) |
Integer Number of page elements format: int32 |
||||||||||||||||||||||||||||||
totalElements (optional) |
Long Total number of elements format: int64 |
||||||||||||||||||||||||||||||
totalPages (optional) |
Integer Total number of pages format: int32 |
||||||||||||||||||||||||||||||
_type |
String |
||||||||||||||||||||||||||||||
|
Enum: TaskDescriptionPage |
||||||||||||||||||||||||||||||
content (optional) |
array[TaskDescription] Task description page Velostrata management task description
|
Example data
Content-Type: application/json
{
"number": 0,
"numberOfElements": 0,
"totalElements": 0,
"totalPages": 0,
"_type": "TaskDescriptionPage",
"content": [
{
"endTime": "2017-06-14T23:27:46.539Z",
"entity": {
"value": "vm-1",
"_type": "VmId"
},
"errorDetails": "string",
"errorMessage": [
"string"
],
"id": {
"value": "vm-1",
"_type": "TaskId"
},
"onPremisesTaskId": "task-123",
"parentTaskId": {
"value": "vm-1",
"_type": "TaskId"
},
"progress": 0,
"progressMessage": [
"string"
],
"startTime": "2017-06-14T23:27:46.539Z",
"state": "Running",
"subTasks": [
{
"value": "vm-1",
"_type": "TaskId"
}
],
"taskType": "RunVmInCloud",
"username": "velostrata_vcenetr_user"
}
]
}
Produces
This API call produces the following media types according to the Accept request header; the media type will be conveyed by the Content-Type response header.
- application/json
Responses
200
OK TaskDescriptionPage